const { createProxyMiddleware } = require('http-proxy-middleware');
 
module.exports = {
  devServer: {
    disableHostCheck: true,
	proxy: {
		'/iopaint': {
			target: 'http://localhost:8080',
			// target: 'https://qlimage.jsbhp.com',
			changeOrigin: true,
			secure: false,
			ws: false,
			pathRewrite: {
				'^/iopaint': ''
			}
		}
	}
  }
};